import { getBannerList } from '@/apis/home';
import { ref ,onMounted} from 'vue';
export function useBanner(){
  const bannerList = ref([])
const getBanner = async () => {
  const { data:{result} } = await getBannerList('2');
  bannerList.value = result;
};

onMounted(() => getBanner())
return {bannerList}
}